package com.xiaoy.core.database.form.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.xiaoy.core.database.util.store.config.ConfigTable;

/**
 * 做查询的视图，即列表页面
 * @author chentianyi
 * 2014年6月10日 上午10:34:29
 */
@Entity
@Table(name=ConfigTable.VIEW_TABLENAME)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class View extends Business{

	private static final long serialVersionUID = 1L;
	
	protected String sql ;
	protected String describe ;
	protected String state ;
	protected int rowNum ;
	public View () {}
	
	public View (long id) {
		this.id= id;
	}
	
	public View (String name,String sql) {
		this.name = name;
		this.sql = sql;
	}

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public int getRowNum() {
		return rowNum;
	}

	public void setRowNum(int rowNum) {
		this.rowNum = rowNum;
	}
	
}


